package com.ihr360.authority.sharing.valid;

import com.ihr360.authority.sharing.validator.AuthValidator;
import com.ihr360.validation.Validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface AuthValid {

    /**
     * 验证器名称
     *
     * @return
     */
    Class<? extends AuthValidator> validator() default AuthValidator.class;

    /**
     * 验证实体
     * @return
     */
    Class<?> entity() default Void.class;
}